package vip.buddha.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import vip.buddha.entity.Storage;

@Component
@FeignClient(value = "shopping-storage")
public interface StorageService {
    @RequestMapping("/storage/list")
    String list();

    @PutMapping("/storage/{goodsId}")
    Integer update(@PathVariable("goodsId") Integer goodsId, @RequestBody Storage storage);
}
